<template>
<button @click="increament">{{count}}</button>
<div>{{doubleCount}}</div>
<div>{{counter.count}}</div>
</template>
<script setup lang="ts">
import { useCounterStore } from '@/store/pina'
import { storeToRefs } from 'pinia'
const counter = useCounterStore()
const {count,doubleCount} = storeToRefs(counter)
const increament =()=>{
    counter.increment()
}
</script>